package com.hqyj.pojo;

import java.io.Serializable;

/**
 * (Goods)实体类
 *
 * @author makejava
 * @since 2021-08-12 09:31:15
 */
public class Goods implements Serializable {
    private static final long serialVersionUID = 503029602402398788L;
    /**
     * 商品ID（主键）
     */
    private Long goodsId;
    /**
     * 商品图片
     */
    private String goodsPic;
    /**
     * 商品名
     */
    private String goodsName;
    /**
     * 商品详情
     */
    private String goodsDesc;
    /**
     * 上架/下架(1/2)
     */
    private Integer goodsStatus;
    /**
     * 商品分类ID
     */
    private Long typeId;
    /**
     * 属性列表(规格属性,例如：一台主机{"内存":"2G","颜色":"红色","尺寸":"20cm"})
     */
    private String attributeList;
    /**
     * 商品单价
     */
    private double goodPrice;
    /**
     * 商品库存
     */
    private Long goodsStock;
    /**
     * 折扣（0~1的两位小数）
     */
    private double discount;
    /**
     * 删除标记
     */
    private boolean deleted;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 更新时间
     */
    private String updateTime;


    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsPic() {
        return goodsPic;
    }

    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public Integer getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(Integer goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getAttributeList() {
        return attributeList;
    }

    public void setAttributeList(String attributeList) {
        this.attributeList = attributeList;
    }

    public double getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(double goodPrice) {
        this.goodPrice = goodPrice;
    }

    public Long getGoodsStock() {
        return goodsStock;
    }

    public void setGoodsStock(Long goodsStock) {
        this.goodsStock = goodsStock;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Goods() {
    }

    public Goods(Long goodsId, String goodsPic, String goodsName, String goodsDesc, Integer goodsStatus, Long typeId, String attributeList, double goodPrice, Long goodsStock, double discount, boolean deleted, String createTime, String updateTime) {

        this.goodsId = goodsId;
        this.goodsPic = goodsPic;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsStatus = goodsStatus;
        this.typeId = typeId;
        this.attributeList = attributeList;
        this.goodPrice = goodPrice;
        this.goodsStock = goodsStock;
        this.discount = discount;
        this.deleted = deleted;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsId=" + goodsId +
                ", goodsPic='" + goodsPic + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsStatus=" + goodsStatus +
                ", typeId=" + typeId +
                ", attributeList='" + attributeList + '\'' +
                ", goodPrice=" + goodPrice +
                ", goodsStock=" + goodsStock +
                ", discount=" + discount +
                ", deleted=" + deleted +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
